/**
 * Project Name:JingZhenGu
 * File Name:StyleList.java
 * Package Name:com.gc.jingzhengu.vo
 * Date:2014-6-16上午10:19:54
 * Copyright (c) 2014, wangyd523@gmail.com All Rights Reserved.
 *
 */

package com.jzg.jcptadmin.data.vo;

import android.os.Parcel;
import android.os.Parcelable;

import com.jzg.jcptadmin.base.BaseObject;

import java.util.ArrayList;
import java.util.List;

/**
 * ClassName:StyleList <br/>
 * Function: 车型列表实体对象. <br/>
 * Reason: TODO ADD REASON. <br/>
 * Date: 2014-6-16 上午10:19:54 <br/>
 * 
 * @author 汪渝栋
 * @version
 * @since JDK 1.6
 * @see
 */
public class StyleList extends BaseObject implements Parcelable
{
	private ArrayList<StyleCategory> YearGroupList;

	public ArrayList<StyleCategory> getYearGroupList() {
		return YearGroupList;
	}

	public void setYearGroupList(ArrayList<StyleCategory> yearGroupList) {
		YearGroupList = yearGroupList;
	}

	@Override
	public String toString() {
		return "StyleList{" +
				"YearGroupList=" + YearGroupList +
				'}';
	}


	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		super.writeToParcel(dest, flags);
		dest.writeList(this.YearGroupList);
	}

	public StyleList() {
	}

	protected StyleList(Parcel in) {
		super(in);
		this.YearGroupList = new ArrayList<StyleCategory>();
		in.readList(this.YearGroupList, List.class.getClassLoader());
	}

	public static final Creator<StyleList> CREATOR = new Creator<StyleList>() {
		public StyleList createFromParcel(Parcel source) {
			return new StyleList(source);
		}

		public StyleList[] newArray(int size) {
			return new StyleList[size];
		}
	};
}
